export const EXPIRED_STATUS = {
  0: { codeNum: '', codeName: '全部', codeTypeNum: 'EXPIRED_STATUS' },
  1: { codeNum: 0, codeName: '启用', codeTypeNum: 'EXPIRED_STATUS' },
  2: { codeNum: 1, codeName: '禁用', codeTypeNum: 'EXPIRED_STATUS' },
};

export const EXPIRED_STATUS_SIMPLIFY = {
  0: { codeNum: 0, codeName: '启用', codeTypeNum: 'EXPIRED_STATUS', tag: 'success' },
  1: { codeNum: 1, codeName: '禁用', codeTypeNum: 'EXPIRED_STATUS', tag: 'danger' },
};

export const COL_INDEXS = [{
  prop: 'companyName',
  label: '企业名称'
}, {
  prop: 'companyCode',
  label: '企业码'
}, {
  prop: 'authCount',
  label: '授权人数'
}, {
  prop: 'useLimit',
  label: '授权期限'
}, {
  prop: 'enabled',
  label: '授权状态',
  isDict: true,
  dictType: 'EXPIRED_STATUS'
}, {
  prop: 'createBy',
  label: '创建人'
}, {
  prop: 'createTime',
  label: '创建时间'
}];

export const FILTER_PARAMS = {
  orgTypeCode: { codeNum: 'orgTypeCode', codeName: '企业码或企业名称', interfaceParam: 'q' },
  expiredStatus: { codeNum: 'expiredStatus', codeName: '授权状态', interfaceParam: 'enable' }
}
